home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / lib / include / rpc / key_prot.h < prev    next >
Encoding:
C/C++ Source or Header  |  1991-11-06  |  1.4 KB  |  88 lines

  1. /* @(#)key_prot.h 1.9 89/07/26 Copyr 1986 Sun Micro */
  2.  
  3. /*
  4.  * Compiled from key_prot.x using rpcgen.
  5.  * DO NOT EDIT THIS FILE!
  6.  * This is NOT source code!
  7.  */
  8.  
  9. #ifndef _rpc_key_prot_h
  10. #define    _rpc_key_prot_h
  11.  
  12. #define    KEY_PROG 100029
  13. #define    KEY_VERS 1
  14. #define    KEY_SET 1
  15. #define    KEY_ENCRYPT 2
  16. #define    KEY_DECRYPT 3
  17. #define    KEY_GEN 4
  18. #define    KEY_GETCRED 5
  19.  
  20. #define    PROOT 3
  21. #define    HEXMODULUS "d4a0ba0250b6fd2ec626e7efd637df76c716e22d0944b88b"
  22. #define    HEXKEYBYTES 48
  23. #define    KEYSIZE 192
  24. #define    KEYBYTES 24
  25. #define    KEYCHECKSUMSIZE 16
  26.  
  27. enum keystatus {
  28.     KEY_SUCCESS = 0,
  29.     KEY_NOSECRET = 1,
  30.     KEY_UNKNOWN = 2,
  31.     KEY_SYSTEMERR = 3,
  32. };
  33. typedef enum keystatus keystatus;
  34. bool_t xdr_keystatus();
  35.  
  36. #ifndef KERNEL
  37.  
  38. typedef char keybuf[HEXKEYBYTES];
  39. bool_t xdr_keybuf();
  40.  
  41. #endif
  42.  
  43. typedef char *netnamestr;
  44. bool_t xdr_netnamestr();
  45.  
  46.  
  47. struct cryptkeyarg {
  48.     netnamestr remotename;
  49.     des_block deskey;
  50. };
  51. typedef struct cryptkeyarg cryptkeyarg;
  52. bool_t xdr_cryptkeyarg();
  53.  
  54.  
  55. struct cryptkeyres {
  56.     keystatus status;
  57.     union {
  58.         des_block deskey;
  59.     } cryptkeyres_u;
  60. };
  61. typedef struct cryptkeyres cryptkeyres;
  62. bool_t xdr_cryptkeyres();
  63.  
  64. #define    MAXGIDS 16
  65.  
  66. struct unixcred {
  67.     u_int uid;
  68.     u_int gid;
  69.     struct {
  70.         u_int gids_len;
  71.         u_int *gids_val;
  72.     } gids;
  73. };
  74. typedef struct unixcred unixcred;
  75. bool_t xdr_unixcred();
  76.  
  77.  
  78. struct getcredres {
  79.     keystatus status;
  80.     union {
  81.         unixcred cred;
  82.     } getcredres_u;
  83. };
  84. typedef struct getcredres getcredres;
  85. bool_t xdr_getcredres();
  86.  
  87. #endif /*!_rpc_key_prot_h*/
  88.